package com.inst.rabitmq.service;

import org.springframework.amqp.rabbit.annotation.RabbitListener;
import org.springframework.stereotype.Service;

@Service
public class RabitMqCousumer {


    @RabbitListener(queues = "pqs_queue")
    public void consumer(String msg) {
        System.out.println("spring boot 的rabitmq消费数据:" + msg);
    }
}
